// 时间戳 转年月日 2000-01-01 12:00:00格式化

export const formatTime = (timestamp) => {
    const date = new Date(timestamp * 1000)
    const month = date.getMonth() + 1
    const day = date.getDate()
    const hour = date.getHours()
    const minute = date.getMinutes()
    const second = date.getSeconds()
    return date.getFullYear() + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second  
}